//获取我的存货
export const stock = `
query($user_id:Int){ 
  my_library(user_id:$user_id){
	  id
	  name
    goods_list{
        id
		goods_id
		type
		store_name
		goods_nums
		name
		image
		subtitle
		dispatch_type
		store_id
    }
  }
}`;
//获取我的提货方式
export const method = `
query($goods_id:Int){ 
  get_dispatch_list(goods_id:$goods_id){
    id
	name
  }
}`;
//获取支付成功的分享团信息
export const sussTeam = `
query($order_id:Int){ 
  team_list(order_id:$order_id){
    team_id
	team_name
  }
}`;
//获取我的提货信息
export const methodDetail = `
query($order_id:Int){ 
  order_hexiao_info(order_id:$order_id){
   id
   order_sn
   goods_id
   goods_nums
   code
   user_id
   store_id
   createtime
   status
   status_text
   goods_name
   dispatch_name
   goods_image
   goods_subtitle
   nickname
   mobile
   store_realname
   store_phone
   store_address
   code_image
   store_name
   price
   oprice
   longitude
   latitude
   score
  }
}`;
//获取我的提货列表
export const hexiaoList = `
query($user_id:Int,$page:Int,$status:Int){ 
  order_hexiao_list(user_id:$user_id,page:$page,status:$status){
    list{
        id
		order_sn
		goods_id
		goods_nums
		createtime
		status
		status_text
		goods_name
		dispatch_name
		goods_image
		goods_subtitle
		store_name
		store_id
		goods_type
    }
    total
    lastpage
  }
}`;
//获取团惠包列表
export const cartTeam = `
query($user_id:Int){ 
  cart_team(user_id:$user_id){
    id
	goods_id
	name
	images
	image
	subtitle
	dispatch_type
	store_name
	store_id
	price
	oprice
  }
}`;
//获取团惠包数量
export const numsTeam = `
query($user_id:Int){ 
  team_shopping_nums(user_id:$user_id){
    nums
	add_nums
  }
}`;
//获取团惠包价格表
export const PriceTeam = `
query($driver_id:Int){ 
  cart_goods_price(driver_id:$driver_id){
    money
	yh_money
	total_money
	team_level
	team_level_image
	team_name
	team_id
	team_cha_nums
	title
	des
	list{
		money
		yh_money
		is_active
		level_image
	}
  }
}`;
//获取团惠包订单页面
export const orderTeam = `
query($id:Int){ 
  bao_team_info(id:$id){
    id
	bao_id
	pay_fee
	money
	total_money
	yh_money
	goods_list{
		id
		name
		image
		subtitle
		dispatch_type
		store_id
		store_name
		price
		oprice
	}
  }
}`;

//获取团惠包我的订单
export const myorderTeam = `
query($driver_id:Int,$page:Int,$type:String){ 
  bao_list(driver_id:$driver_id,page:$page,type:$type){
    list{
        id
		title
		type
		bao_id
		avatar
		nickname
		bao_status
		status
		money
		jiang_money
		jia_text
		descript
		goods_list{
			id
			name
			image
			status
		}
		jiang_list{
			name
			money
		}
        }
	total
	lastpage
  }
}`;
//获取团惠包详情 (我创建的/我分享的/我购买的)
export const myGroupTeamDetail=`
query($id:Int,$user_id:Int,$bao_id:Int,$type:String){ 
  get_bao_info(id:$id,user_id:$user_id,bao_id:$bao_id,type:$type){
    id
	bao_id
	cha_time
	pay_fee
	money
	total_money
	yh_price
	team_id
	team_name
	team_image
	title
	is_buy
	type
	descript
	des
	status
	create_nickname
	create_avatar
	goods_list{
		id
		name
		image
		subtitle
		dispatch_type
		store_id
		store_name
		price
		oprice
		status
	}
	price_list{
		level
		money
		yh_money
		is_active
		level_image
	}
	fx_price
	fx_price_count
  }
}`
//获取团惠包详情
export const TeamDetail = `
query($id:Int,$user_id:Int){ 
  get_bao_info2(id:$id,user_id:$user_id){
    id
	bao_id
	cha_time
	pay_fee
	money
	total_money
	yh_money
	team_id
	team_name
	team_image
	title
	des
	is_buy
	descript
	status
	create_nickname
	create_avatar
	fx_nickname
	fx_avatar
	fx_user_id
	team_id
	team_name
	goods_list{
		id
		name
		image
		subtitle
		dispatch_type
		store_id
		store_name
		price
		oprice
		status
	}
	price_list{
		level
		money
		yh_money
		is_active
		level_image
	}
	fx_price
	fx_price_count
  }
}`;
//获取团惠包详情
export const myGroupTeam = `
query($id:Int,$user_id:Int,$team_id:Int,$fx_user_id:Int){ 
  bao_info(id:$id,user_id:$user_id,team_id:$team_id,fx_user_id:$fx_user_id){
   id
   cha_time
   pay_fee
   money
   total_money
   yh_price
   team_id
   team_name
   team_image
   title
   fx_nickname
   create_nickname
   team_status
   team_driver_cha
   des
   fx_price
   fx_avatar
   create_avatar
   fx_price_count
   fx_team_id
   fx_team_page
   is_add
   goods_list{
	   id
	   name
	   image
	   subtitle
	   dispatch_type
	   store_id
	   store_name
	   price
	   oprice
   }
   price_list{
	   level
	   money
	   yh_money
	   is_active
	   level_image
   }
  }
}`;

//获取团惠包邀请团
export const teamFx = `
query($driver_id:Int,$bao_id:Int){ 
  bao_team_fx(driver_id:$driver_id,bao_id:$bao_id){
    team_id
	name
	money
	is_fenxiang
  }
}`;
//获取团内的团惠包
export const teamGroup = `
query($team_id:Int,$page:Int,$user_id:Int,$status:String){ 
  team_bao_list(team_id:$team_id,page:$page,user_id:$user_id,status:$status){
    list{
	id
	fx_user_id
	bao_id
	title
	fx_avatar
	fx_nickname
	money
	jian_money
	jia_text
	is_buy
	status
	descript
	goods_list{
		id
		name
		image
		status
	}
	price_list{
		   level
		   money
		   yh_money
		   is_active
		   level_image
	}
	}
	total
	lastpage
  }
}`;

//获取团惠包动态
export const teamdynamic = `
query($bao_id:Int,$page:Int){ 
  bao_log_list(bao_id:$bao_id,page:$page){
    list{
		id
		avatar
		nickname
		memo
		createtime
	}
	total
	lastpage
  }
}`;
//获取团惠包ID
export const numsID = `
query($order_id:Int){ 
  team_order_info(order_id:$order_id){
    id
    bao_id
  }
}`;
//获取团惠包列表
export const teamList = `
query($driver_id:Int,$page:Int){ 
  team_order_list(driver_id:$driver_id,page:$page){
    list{
		id
		bao_id
		order_sn
		money
		total_money
		yh_money
		pay_fee
		createtime
		level_image
		status
		status_text
		goods_list{
			id
			name
			image
		}
	}
	total
	lastpage
  }
}`;

//获取团惠包信息
export const numsDetails = `
query($order_id:Int){ 
  team_order_info(order_id:$order_id){
    id
	bao_id
	order_sn
	money
	total_money
	yh_money
	pay_fee
	cha
	createtime
	title
	fx_user_id
	team_id
	status
	goods_list{
		id
		name
		image
		subtitle
		dispatch_type
		store_name
		goods_nums
		price
		oprice
		store_id
	}
  }
}`;

//获取提货成功数据
export const Pickingup = `
query($order_id:Int){ 
  order_hexiao_info(order_id:$order_id){
    id
	order_sn
	goods_id
	goods_nums
	code
	user_id
	store_id
	createtime
	status
	status_text
	goods_name
    dispatch_id
	goods_type
	dispatch_name
	goods_image
	goods_subtitle
	nickname
	mobile
  }
}`;
//获取团惠包奖励列表
export const rewardList = `
query($user_id:Int,$page:Int,$bao_id:Int){
  team_bao_money_list(user_id:$user_id,page:$page,bao_id:$bao_id){
    list{
		id
		nickname
		avatar
		money
		createtime
		memo
	}
	total
	lastpage
  }
}`;

//获取团惠包未领取数量
export const rewardNumber = `
query($user_id:Int){
  get_hexiao_nums(user_id:$user_id){
    nums
  }
}`;